package com.hishop.service;

import com.hishop.common.ServerResponse;
import com.hishop.pojo.User;

/**
 * Created by hejie on 2017/7/14.
 */
public interface IUserService {
    ServerResponse<User> login(String username, String password);
    ServerResponse<String> register(User user);
    ServerResponse<String> checkValid(String str, String type);
    ServerResponse<String> checkAnswer(String username, String question, String answer);
    ServerResponse<String> selectQuestion(String username);
    ServerResponse<String> forgetResetPassword(String username, String passwordNew, String forgetToken);
    ServerResponse<String> resetPassword(String passwordOld, String passwordNew, User user);
    ServerResponse<User>updateUserInfo(User user);
    ServerResponse<User>getUserInfo(Integer userId);
    ServerResponse<String>checkAdminRole(User user);
}

